current_dir = $(shell pwd)
COMMON_PATH=$(current_dir)/../common

C_INCLUDE_PATH=$(C_INCLUDE_PATH):/usr/local/include
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):/usr/local/lib

CFLAGS?=	-Wall -ggdb -W -O
LDFLAGS?=

CC?=		gcc
LDLIBS?= 
INCLUDE = -I ../common ../acl

COMMON_OBJ= $(COMMON_PATH)/common.o $(COMMON_PATH)/change.o
TEMPFILES?=
 
src = $(wildcard *.c)        
objs = $(patsubst %.c,%.o,$(src))
 
VERSION=1.0
TMPDIR=/tmp/socket-$(VERSION)


SOURCES = $(wildcard *.c)
OBJS = $(patsubst %.c,%.o,$(SOURCES))


ACL=  acl

all:	$(ACL) 

%.o:%.c 
	$(CC) $(CFLAGS) $(LDFLAGS) -c $< -o $@   $(LDLIBS) $(INCLUDE)

clean:
	rm -f $(PF_RING)  $(TEMPFILES) *.o 

.PHONY: clean install all tar


 
